Skip to content

Add a --max-fps command-line argument to set a FPS limit - #78012

Merged
akien-mga merged 1 commit into
godotengine:masterfrom
Calinou:cli-add-max-fps-argument
Aug 17, 2023
Merged

Add a --max-fps command-line argument to set a FPS limit#78012
akien-mga merged 1 commit into
godotengine:masterfrom
Calinou:cli-add-max-fps-argument

Conversation

@Calinou

@Calinou Calinou commented Jun 8, 2023

Copy link
Copy Markdown
Member

This allows limiting framerate on any project, which is useful to reduce power usage and latency with certain setups (such as VRR displays).

This is particularly useful in projects that do not expose a setting to change the FPS limit. While external FPS limiters can be used, they can be cumbersome to set up and result in increased input lag compared to a built-in FPS limiter.

@Calinou
Calinou requested review from a team as code owners June 8, 2023 17:38
@Calinou Calinou added this to the 4.x milestone Jun 8, 2023
@Calinou
Calinou force-pushed the cli-add-max-fps-argument branch from 4253d7a to 07b2d51 Compare June 8, 2023 17:48
Comment thread main/main.cpp Outdated
@akien-mga akien-mga modified the milestones: 4.x, 4.2 Jun 10, 2023
@Calinou
Calinou force-pushed the cli-add-max-fps-argument branch from 07b2d51 to e87b8fb Compare June 10, 2023 20:23
This allows limiting framerate on any project, which is useful to
reduce power usage and latency with certain setups (such as VRR displays).

This is particularly useful in projects that do not expose a setting to change
the FPS limit. While external FPS limiters can be used, they can be cumbersome
to set up and result in increased input lag compared to a built-in FPS limiter.
@Calinou
Calinou force-pushed the cli-add-max-fps-argument branch from e87b8fb to 4cab770 Compare July 28, 2023 00:51

@akien-mga akien-mga left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine.

@akien-mga
akien-mga merged commit d603040 into godotengine:master Aug 17, 2023
@akien-mga

Copy link
Copy Markdown
Member

Thanks!

@Calinou
Calinou deleted the cli-add-max-fps-argument branch August 17, 2023 11:49
BendyLand pushed a commit to BendyLand/voltaire that referenced this pull request Aug 2, 2026
…ument

Add a `--max-fps` command-line argument to set a FPS limit
BendyLand pushed a commit to BendyLand/voltaire that referenced this pull request Aug 2, 2026
…ument

Add a `--max-fps` command-line argument to set a FPS limit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a --max-fps command line argument to set a built-in FPS limit on any project

3 participants